
let data = [11, 0, 0, 0, 104, 101, 108, 108, 111, 32, 119, 111, 114, 108, 100, 78, 97, 188, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 34, 217, 151, 198, 5, 194, 52, 6, 58, 142, 103, 147, 204, 212, 65, 237, 89, 254, 63, 103, 183, 242, 134, 80, 188, 208, 67, 182, 31, 221, 123];
let dataBuf = Buffer.from(data);
const {PublicKey} = require("@solana/web3.js");
const {OutboundFunctionCallData} = require('./outboundFunctionCallData');


let outbound = new OutboundFunctionCallData(dataBuf);
let obj1 = outbound.fromBorshBytes(dataBuf);
console.log(obj1);

let functionCallData = obj1.functionCallData;
let networkId = obj1.networkId;
let contractAddress = obj1.contractAddress;

console.log("functionCallData", Buffer.from(functionCallData).toString());
console.log("networkId", networkId);
console.log("contractAddress", Buffer.from(contractAddress).toString('hex'));


let pk = new PublicKey(contractAddress);
console.log(pk.toBase58());
